﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Framework.Communication.Messages;

namespace PSE.Framework.Communication.Adapters.File
{
    public class RecordEventArgs : EventArgs
    {
        private RecordEventArgs()
        {
        }

        public RecordEventArgs(MessageEventArgs e)
        {
            if (e != null)
            {
                this._action = e.Action;
                this._record = e.Message;
            }
        }

        private string _action = null;
        /// <summary>
        /// Action da mensagem
        /// </summary>
        public string Action
        {
            get { return _action; }
        }

        private object _record;
        /// <summary>
        /// Mensagem
        /// </summary>
        public object Record
        {
            get { return _record; }
        }
    }
}
